import request from '@/utils/request'

export const loginApi = data => request.post('/sys/login', data)
export const getUserInfoApi = () => request.get('/sys/profile')
/**
     * 更新密码
     * **/
export const updatePasswordApi = data => request({
  url: '/sys/user/updatePass',
  method: 'put',
  data
})

export const getUserDetailById = id => request.get(`/sys/user/${id}`)

// 获取用户扫码登录的加密串 用来生成二维码
export const getQrcodeKeyAPI = () => request.get('/sys/qrcodeKey')

export const getQrCodeStateAPI = params => request.get('/sys/qrcodeState', { params })

export const updateUserStaffPhotoAPI = data => request.put('/sys/updateStaffPhoto', data)
